﻿using System;
using System.Collections.Generic;
using System.Text;

namespace FingerTip.Infrastructure.SampleHttpClient
{
    public abstract class BaseClient
    {
        protected BaseClient(string hostUrl="")
        {
            HostUrl = hostUrl;
        }

        public virtual string HostUrl { get; }

        public HttpRequestor Get()
        {
            return new HttpRequestor(HostUrl, MethodType.Get);
        }
        public HttpRequestor Post()
        {
            return new HttpRequestor(HostUrl, MethodType.Post);
        }
        public HttpRequestor Put()
        {
            return new HttpRequestor(HostUrl, MethodType.Put);
        }
        public HttpRequestor Delete()
        {
            return new HttpRequestor(HostUrl, MethodType.Delete);
        }
    }
}
